import { ArticletEntity } from './article.entity';
import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne } from 'typeorm';
import { Type } from 'class-transformer';

@Entity('article_reply', { name: '回复表' })
export class ArticleThumbsEntity {

    @Type(() => String)
    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string

    @Column({ comment: '评论id' })
    commentId: string;

    @Column({ comment: '回复人id' })
    fromUid: string;

    @Column({ comment: '回复目标id' })
    replyId: string;

    @Column({ comment: '回复内容' })
    comment: string;

    @Column({ comment: '目标人id' })
    toUid: string;

    @CreateDateColumn({ precision: 0 })
    createTime: Date
}  